/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apus.persistence.proxy;

import apus.entity.Person;
import apus.persistence.PersonDAO;

/**
 * The <code>PersonProxy</code> class represents APUS person-proxy.
 * @author  Maxim Vasilevsky
 * @author  Roman Dyatkovsky
 * @since APUS v0.5
 * @see AbstractProxy
 * @see Person
 */
public class PersonProxy extends SubscriberProxy<Person,PersonDAO> implements Person{

    public PersonProxy() {
        super(PersonDAO.class);
    }
    
    @Override
    public String getPassportNumber() {
        return getProxy().getPassportNumber();
    }

    @Override
    public void setPassportNumber(String passportNumber) {
        getProxy().setPassportNumber(passportNumber);
    }
    
    @Override
    public String toString() {
        return getProxy().toString();
    }

    @Override
    public String getSubscriberType() {
        return "person";
    }
    
}